﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/TemplateAdmin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcVehicleInsurance.Models.CustomerBillingInformation>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Search
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <h2 class="ico_mug">Search Bill</h2>

    <% using (Html.BeginForm()){%>
    <table>
      <tr><th>Search:</th> <td><input type="text" name="id" /> </td></tr>
      <tr><td colspan="2"><input type="submit" value="Search" /></td></tr>
    </table>
    <%} %>

    <table>
        <tr>
            <th></th>
            <th>
                billNo
            </th>
            <th>
                date
            </th>
            <th>
                amount
            </th>
            <th>
                Acc_ID
            </th>
            <th>
                customerID
            </th>
            <th>
                TypePayment
            </th>
            <th>
                Bank
            </th>
            <th>
                BankAccount
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.billNo }) %> |
                <%: Html.ActionLink("Details", "Details", new { id=item.billNo })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.billNo })%>
            </td>
            <td>
                <%: item.billNo %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.date) %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.amount) %>
            </td>
            <td>
                <%: item.Acc_ID %>
            </td>
            <td>
                <%: item.customerID %>
            </td>
            <td>
                <%: item.TypePayment %>
            </td>
            <td>
                <%: item.Bank %>
            </td>
            <td>
                <%: item.BankAccount %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

